package main

//var deposits = make(chan int)
//var balances = make(chan int)
//
//func Deposits(amount int) { deposits <- amount }
//func Balance() int { return <-balances }
//
//func teller() {
//	var balance int // blance 被限制在 teller goroutine中
//	for {
//		select {
//		case amount := <-deposits:
//			balance += amount
//		case balances <- balance:
//
//		}
//	}
//}
//
//func init() {
//	go teller()
//}
